<template>
  <div class="navBar">
    <van-nav-bar @click-left="$router.push(path)">
      <template #left>
        <i class="iconfont f1">&#xe637; </i>
      </template>
      <template #title>
        <div class="title">
          {{ title }}
        </div>
      </template>
    </van-nav-bar>
  </div>
</template>
<script>
export default {
  props: ['title', 'path']
}
</script>
<style lang="less" scoped>
.navBar {
  .f1 {
    font-size: 44px;
  }
  .title {
    font-size: 18px;
    font-family: PingFangSC, PingFangSC-Semibold;
    font-weight: 600;
    text-align: left;
    color: #222222;
    line-height: 25px;
    letter-spacing: 0px;
  }
  &::v-deep .van-nav-bar__left,
  &::v-deep .van-nav-bar__right {
    padding: 0;
  }
}
</style>
